package com.yundasys.lab10designpattern.singleton;

/**
 * 第1种 不加锁（裸奔写法）
 *
 * @author jiangta
 * @version 1.0
 * @date 2021/4/14 10:11 上午
 */
public class UnsafeLazyInitialization {
    private static UnsafeLazyInitialization instance;
    public static UnsafeLazyInitialization getInstance() {
        if(instance == null) {
            instance = new UnsafeLazyInitialization();
        }
        return instance;
    }
}
